import request from '@/request'
import { Template } from '@/types'

export const getTemplateList = () => {
  return request<Template[]>({
    url: '/template',
  })
}

export const getTemplate = (id: Template['id']) => {
  return request<Template>({
    url: '/template/' + id,
  })
}